<template>
  <div class="mobile-nav">
    <nuxt-link class="nav" to="/">
      <div class="nav-block">
        <div class="iconfont el-icon-house"></div>
        <div class="nav-title">首页</div>
      </div>
    </nuxt-link>
    <nuxt-link class="nav" to="/filter">
      <div class="nav-block">
        <div class="iconfont el-icon-aim"></div>
        <div class="nav-title">选片</div>
      </div>
    </nuxt-link>
  </div>
</template>

<script>
export default {
  name: "mobileNav",
  data() {
    return {};
  },
};
</script>

<style>
@media screen and (min-width: 800px) {
  .mobile-nav {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    height: 50px;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 33px 8px rgb(30 35 42 / 5%);
    z-index: 99999;
    display: flex;
  }
}
a {
  cursor: pointer;
  text-decoration: none;
  color: rgb(89, 90, 90);
  vertical-align: middle;
}
a:link,
a:visited,
a:hover {
  text-decoration: none;
}
.nav {
  width: 50%;
  justify-content: center;
  height: 100%;
  cursor: pointer;
}
.nav-block {
  text-align: center;
}
.nav-title,
.nav {
  color: #0d253f;
  font-size: 14px;
}
.active,
.nuxt-link-exact-active {
  color: #2fb3db;
}
.iconfont {
  font-size: 25px;
}
</style>
